import request from '@/utils/request'

//查询列表
export function getList(query) {
    return request({
        url: '/monitorPort/list',
        method: 'get',
        params: query
    })
}

//新增、编辑数据
export function updateData(data) {
    return request({
        url: '/monitorPort/saveOrUpdate',
        method: 'post',
        data: data
    })
}

//删除
export function deleteRow(id) {
    return request({
        url: '/monitorPort/remove/' + id,
        method: 'delete'
    })
}

//测试端口
export function validate(data) {
    return request({
        url: '/monitorPort/validate',
        method: 'post',
        data: data
    })
}
